LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := zutil_static

LOCAL_MODULE_FILENAME := libzutil

LOCAL_SRC_FILES := \
	../src/bstraux.c \
	../src/bstrlib.c \
	../src/bstrwrap.cpp \
	../src/lj_alloc.c \
	../src/zbacktrace_android.c \
	../src/zdc.cpp \
	../src/zlogger.cpp \
	../src/zluaobj.cpp \
	../src/zluaobjandroid.cpp \
	../src/zobj.cpp \
	../src/zos.cpp \
	../src/zstring.cpp \
	../src/zvar.cpp \
	../../c/zpack.c \
	../../external/LuaBitOp-1.0.1/bit.c

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../include \
						$(LOCAL_PATH)/../../external/lua-5.1.4/src \
						$(LOCAL_PATH)/../../external/luasocket-2.0.2/src

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include \
						$(LOCAL_PATH)/../../external/lua-5.1.4/src \
						$(LOCAL_PATH)/../../external/luasocket-2.0.2/src

LOCAL_CFLAGS := -DZUTIL_OSTYPE=3

LOCAL_WHOLE_STATIC_LIBRARIES := lua_static luasql_static luasocket_static lpeg_static

include $(BUILD_STATIC_LIBRARY)

$(call import-module,utillib/android/lua514)
$(call import-module,utillib/android/luasql)
$(call import-module,utillib/android/luasocket)
$(call import-module,utillib/android/lpeg)
